import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/inspec/task_department_list_entity.dart';

TaskDepartmentListEntity $TaskDepartmentListEntityFromJson(Map<String, dynamic> json) {
  final TaskDepartmentListEntity taskDepartmentListEntity = TaskDepartmentListEntity();
  final String? allocationId = jsonConvert.convert<String>(json['allocationId']);
  if (allocationId != null) {
    taskDepartmentListEntity.allocationId = allocationId;
  }
  final String? allocationName = jsonConvert.convert<String>(json['allocationName']);
  if (allocationName != null) {
    taskDepartmentListEntity.allocationName = allocationName;
  }
  final String? allocationType = jsonConvert.convert<String>(json['allocationType']);
  if (allocationType != null) {
    taskDepartmentListEntity.allocationType = allocationType;
  }
  final String? checkCycle = jsonConvert.convert<String>(json['checkCycle']);
  if (checkCycle != null) {
    taskDepartmentListEntity.checkCycle = checkCycle;
  }
  final String? checkCycleUnit = jsonConvert.convert<String>(json['checkCycleUnit']);
  if (checkCycleUnit != null) {
    taskDepartmentListEntity.checkCycleUnit = checkCycleUnit;
  }
  final String? checkMeans = jsonConvert.convert<String>(json['checkMeans']);
  if (checkMeans != null) {
    taskDepartmentListEntity.checkMeans = checkMeans;
  }
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    taskDepartmentListEntity.companyCode = companyCode;
  }
  final String? companyId = jsonConvert.convert<String>(json['companyId']);
  if (companyId != null) {
    taskDepartmentListEntity.companyId = companyId;
  }
  final String? controlMeasures = jsonConvert.convert<String>(json['controlMeasures']);
  if (controlMeasures != null) {
    taskDepartmentListEntity.controlMeasures = controlMeasures;
  }
  final int? controllable = jsonConvert.convert<int>(json['controllable']);
  if (controllable != null) {
    taskDepartmentListEntity.controllable = controllable;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    taskDepartmentListEntity.createBy = createBy;
  }
  final String? createById = jsonConvert.convert<String>(json['createById']);
  if (createById != null) {
    taskDepartmentListEntity.createById = createById;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    taskDepartmentListEntity.createDate = createDate;
  }
  final String? deleted = jsonConvert.convert<String>(json['deleted']);
  if (deleted != null) {
    taskDepartmentListEntity.deleted = deleted;
  }
  final String? departmentId = jsonConvert.convert<String>(json['departmentId']);
  if (departmentId != null) {
    taskDepartmentListEntity.departmentId = departmentId;
  }
  final String? effectiveTime = jsonConvert.convert<String>(json['effectiveTime']);
  if (effectiveTime != null) {
    taskDepartmentListEntity.effectiveTime = effectiveTime;
  }
  final String? endRefreshTime = jsonConvert.convert<String>(json['endRefreshTime']);
  if (endRefreshTime != null) {
    taskDepartmentListEntity.endRefreshTime = endRefreshTime;
  }
  final String? hazardCode = jsonConvert.convert<String>(json['hazardCode']);
  if (hazardCode != null) {
    taskDepartmentListEntity.hazardCode = hazardCode;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    taskDepartmentListEntity.id = id;
  }
  final int? inspectionStatus = jsonConvert.convert<int>(json['inspectionStatus']);
  if (inspectionStatus != null) {
    taskDepartmentListEntity.inspectionStatus = inspectionStatus;
  }
  final String? instrumentId = jsonConvert.convert<String>(json['instrumentId']);
  if (instrumentId != null) {
    taskDepartmentListEntity.instrumentId = instrumentId;
  }
  final String? inventoryType = jsonConvert.convert<String>(json['inventoryType']);
  if (inventoryType != null) {
    taskDepartmentListEntity.inventoryType = inventoryType;
  }
  final int? isApprove = jsonConvert.convert<int>(json['isApprove']);
  if (isApprove != null) {
    taskDepartmentListEntity.isApprove = isApprove;
  }
  final int? isUpload = jsonConvert.convert<int>(json['isUpload']);
  if (isUpload != null) {
    taskDepartmentListEntity.isUpload = isUpload;
  }
  final String? refreshRule = jsonConvert.convert<String>(json['refreshRule']);
  if (refreshRule != null) {
    taskDepartmentListEntity.refreshRule = refreshRule;
  }
  final String? riskEventId = jsonConvert.convert<String>(json['riskEventId']);
  if (riskEventId != null) {
    taskDepartmentListEntity.riskEventId = riskEventId;
  }
  final String? riskEventName = jsonConvert.convert<String>(json['riskEventName']);
  if (riskEventName != null) {
    taskDepartmentListEntity.riskEventName = riskEventName;
  }
  final String? riskMeasureId = jsonConvert.convert<String>(json['riskMeasureId']);
  if (riskMeasureId != null) {
    taskDepartmentListEntity.riskMeasureId = riskMeasureId;
  }
  final String? riskMeasureName = jsonConvert.convert<String>(json['riskMeasureName']);
  if (riskMeasureName != null) {
    taskDepartmentListEntity.riskMeasureName = riskMeasureName;
  }
  final String? riskObjectId = jsonConvert.convert<String>(json['riskObjectId']);
  if (riskObjectId != null) {
    taskDepartmentListEntity.riskObjectId = riskObjectId;
  }
  final String? riskObjectName = jsonConvert.convert<String>(json['riskObjectName']);
  if (riskObjectName != null) {
    taskDepartmentListEntity.riskObjectName = riskObjectName;
  }
  final String? riskUnitId = jsonConvert.convert<String>(json['riskUnitId']);
  if (riskUnitId != null) {
    taskDepartmentListEntity.riskUnitId = riskUnitId;
  }
  final String? riskUnitName = jsonConvert.convert<String>(json['riskUnitName']);
  if (riskUnitName != null) {
    taskDepartmentListEntity.riskUnitName = riskUnitName;
  }
  final String? season = jsonConvert.convert<String>(json['season']);
  if (season != null) {
    taskDepartmentListEntity.season = season;
  }
  final String? startRefreshTime = jsonConvert.convert<String>(json['startRefreshTime']);
  if (startRefreshTime != null) {
    taskDepartmentListEntity.startRefreshTime = startRefreshTime;
  }
  final int? status = jsonConvert.convert<int>(json['status']);
  if (status != null) {
    taskDepartmentListEntity.status = status;
  }
  final String? taskNum = jsonConvert.convert<String>(json['taskNum']);
  if (taskNum != null) {
    taskDepartmentListEntity.taskNum = taskNum;
  }
  final String? taskStatus = jsonConvert.convert<String>(json['taskStatus']);
  if (taskStatus != null) {
    taskDepartmentListEntity.taskStatus = taskStatus;
  }
  final List<TaskDepartmentListTaskTimeNodeTables>? taskTimeNodeTables = (json['taskTimeNodeTables'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<TaskDepartmentListTaskTimeNodeTables>(e) as TaskDepartmentListTaskTimeNodeTables).toList();
  if (taskTimeNodeTables != null) {
    taskDepartmentListEntity.taskTimeNodeTables = taskTimeNodeTables;
  }
  final String? troubleshootContent = jsonConvert.convert<String>(json['troubleshootContent']);
  if (troubleshootContent != null) {
    taskDepartmentListEntity.troubleshootContent = troubleshootContent;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    taskDepartmentListEntity.updateBy = updateBy;
  }
  final String? updateById = jsonConvert.convert<String>(json['updateById']);
  if (updateById != null) {
    taskDepartmentListEntity.updateById = updateById;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    taskDepartmentListEntity.updateDate = updateDate;
  }
  final String? url = jsonConvert.convert<String>(json['url']);
  if (url != null) {
    taskDepartmentListEntity.url = url;
  }
  final String? userId = jsonConvert.convert<String>(json['userId']);
  if (userId != null) {
    taskDepartmentListEntity.userId = userId;
  }
  final String? warehouseId = jsonConvert.convert<String>(json['warehouseId']);
  if (warehouseId != null) {
    taskDepartmentListEntity.warehouseId = warehouseId;
  }
  final String? workDayType = jsonConvert.convert<String>(json['workDayType']);
  if (workDayType != null) {
    taskDepartmentListEntity.workDayType = workDayType;
  }
  final String? workEndTime = jsonConvert.convert<String>(json['workEndTime']);
  if (workEndTime != null) {
    taskDepartmentListEntity.workEndTime = workEndTime;
  }
  final String? workKind = jsonConvert.convert<String>(json['workKind']);
  if (workKind != null) {
    taskDepartmentListEntity.workKind = workKind;
  }
  final String? workStartTime = jsonConvert.convert<String>(json['workStartTime']);
  if (workStartTime != null) {
    taskDepartmentListEntity.workStartTime = workStartTime;
  }
  final String? workType = jsonConvert.convert<String>(json['workType']);
  if (workType != null) {
    taskDepartmentListEntity.workType = workType;
  }
  final bool? isExpanded = jsonConvert.convert<bool>(json['isExpanded']);
  if (isExpanded != null) {
    taskDepartmentListEntity.isExpanded = isExpanded;
  }
  return taskDepartmentListEntity;
}

Map<String, dynamic> $TaskDepartmentListEntityToJson(TaskDepartmentListEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['allocationId'] = entity.allocationId;
  data['allocationName'] = entity.allocationName;
  data['allocationType'] = entity.allocationType;
  data['checkCycle'] = entity.checkCycle;
  data['checkCycleUnit'] = entity.checkCycleUnit;
  data['checkMeans'] = entity.checkMeans;
  data['companyCode'] = entity.companyCode;
  data['companyId'] = entity.companyId;
  data['controlMeasures'] = entity.controlMeasures;
  data['controllable'] = entity.controllable;
  data['createBy'] = entity.createBy;
  data['createById'] = entity.createById;
  data['createDate'] = entity.createDate;
  data['deleted'] = entity.deleted;
  data['departmentId'] = entity.departmentId;
  data['effectiveTime'] = entity.effectiveTime;
  data['endRefreshTime'] = entity.endRefreshTime;
  data['hazardCode'] = entity.hazardCode;
  data['id'] = entity.id;
  data['inspectionStatus'] = entity.inspectionStatus;
  data['instrumentId'] = entity.instrumentId;
  data['inventoryType'] = entity.inventoryType;
  data['isApprove'] = entity.isApprove;
  data['isUpload'] = entity.isUpload;
  data['refreshRule'] = entity.refreshRule;
  data['riskEventId'] = entity.riskEventId;
  data['riskEventName'] = entity.riskEventName;
  data['riskMeasureId'] = entity.riskMeasureId;
  data['riskMeasureName'] = entity.riskMeasureName;
  data['riskObjectId'] = entity.riskObjectId;
  data['riskObjectName'] = entity.riskObjectName;
  data['riskUnitId'] = entity.riskUnitId;
  data['riskUnitName'] = entity.riskUnitName;
  data['season'] = entity.season;
  data['startRefreshTime'] = entity.startRefreshTime;
  data['status'] = entity.status;
  data['taskNum'] = entity.taskNum;
  data['taskStatus'] = entity.taskStatus;
  data['taskTimeNodeTables'] = entity.taskTimeNodeTables?.map((v) => v.toJson()).toList();
  data['troubleshootContent'] = entity.troubleshootContent;
  data['updateBy'] = entity.updateBy;
  data['updateById'] = entity.updateById;
  data['updateDate'] = entity.updateDate;
  data['url'] = entity.url;
  data['userId'] = entity.userId;
  data['warehouseId'] = entity.warehouseId;
  data['workDayType'] = entity.workDayType;
  data['workEndTime'] = entity.workEndTime;
  data['workKind'] = entity.workKind;
  data['workStartTime'] = entity.workStartTime;
  data['workType'] = entity.workType;
  data['isExpanded'] = entity.isExpanded;
  return data;
}

extension TaskDepartmentListEntityExtension on TaskDepartmentListEntity {
  TaskDepartmentListEntity copyWith({
    String? allocationId,
    String? allocationName,
    String? allocationType,
    String? checkCycle,
    String? checkCycleUnit,
    String? checkMeans,
    String? companyCode,
    String? companyId,
    String? controlMeasures,
    int? controllable,
    String? createBy,
    String? createById,
    String? createDate,
    String? deleted,
    String? departmentId,
    String? effectiveTime,
    String? endRefreshTime,
    String? hazardCode,
    String? id,
    int? inspectionStatus,
    String? instrumentId,
    String? inventoryType,
    int? isApprove,
    int? isUpload,
    String? refreshRule,
    String? riskEventId,
    String? riskEventName,
    String? riskMeasureId,
    String? riskMeasureName,
    String? riskObjectId,
    String? riskObjectName,
    String? riskUnitId,
    String? riskUnitName,
    String? season,
    String? startRefreshTime,
    int? status,
    String? taskNum,
    String? taskStatus,
    List<TaskDepartmentListTaskTimeNodeTables>? taskTimeNodeTables,
    String? troubleshootContent,
    String? updateBy,
    String? updateById,
    String? updateDate,
    String? url,
    String? userId,
    String? warehouseId,
    String? workDayType,
    String? workEndTime,
    String? workKind,
    String? workStartTime,
    String? workType,
    bool? isExpanded,
  }) {
    return TaskDepartmentListEntity()
      ..allocationId = allocationId ?? this.allocationId
      ..allocationName = allocationName ?? this.allocationName
      ..allocationType = allocationType ?? this.allocationType
      ..checkCycle = checkCycle ?? this.checkCycle
      ..checkCycleUnit = checkCycleUnit ?? this.checkCycleUnit
      ..checkMeans = checkMeans ?? this.checkMeans
      ..companyCode = companyCode ?? this.companyCode
      ..companyId = companyId ?? this.companyId
      ..controlMeasures = controlMeasures ?? this.controlMeasures
      ..controllable = controllable ?? this.controllable
      ..createBy = createBy ?? this.createBy
      ..createById = createById ?? this.createById
      ..createDate = createDate ?? this.createDate
      ..deleted = deleted ?? this.deleted
      ..departmentId = departmentId ?? this.departmentId
      ..effectiveTime = effectiveTime ?? this.effectiveTime
      ..endRefreshTime = endRefreshTime ?? this.endRefreshTime
      ..hazardCode = hazardCode ?? this.hazardCode
      ..id = id ?? this.id
      ..inspectionStatus = inspectionStatus ?? this.inspectionStatus
      ..instrumentId = instrumentId ?? this.instrumentId
      ..inventoryType = inventoryType ?? this.inventoryType
      ..isApprove = isApprove ?? this.isApprove
      ..isUpload = isUpload ?? this.isUpload
      ..refreshRule = refreshRule ?? this.refreshRule
      ..riskEventId = riskEventId ?? this.riskEventId
      ..riskEventName = riskEventName ?? this.riskEventName
      ..riskMeasureId = riskMeasureId ?? this.riskMeasureId
      ..riskMeasureName = riskMeasureName ?? this.riskMeasureName
      ..riskObjectId = riskObjectId ?? this.riskObjectId
      ..riskObjectName = riskObjectName ?? this.riskObjectName
      ..riskUnitId = riskUnitId ?? this.riskUnitId
      ..riskUnitName = riskUnitName ?? this.riskUnitName
      ..season = season ?? this.season
      ..startRefreshTime = startRefreshTime ?? this.startRefreshTime
      ..status = status ?? this.status
      ..taskNum = taskNum ?? this.taskNum
      ..taskStatus = taskStatus ?? this.taskStatus
      ..taskTimeNodeTables = taskTimeNodeTables ?? this.taskTimeNodeTables
      ..troubleshootContent = troubleshootContent ?? this.troubleshootContent
      ..updateBy = updateBy ?? this.updateBy
      ..updateById = updateById ?? this.updateById
      ..updateDate = updateDate ?? this.updateDate
      ..url = url ?? this.url
      ..userId = userId ?? this.userId
      ..warehouseId = warehouseId ?? this.warehouseId
      ..workDayType = workDayType ?? this.workDayType
      ..workEndTime = workEndTime ?? this.workEndTime
      ..workKind = workKind ?? this.workKind
      ..workStartTime = workStartTime ?? this.workStartTime
      ..workType = workType ?? this.workType
      ..isExpanded = isExpanded ?? this.isExpanded;
  }
}

TaskDepartmentListTaskTimeNodeTables $TaskDepartmentListTaskTimeNodeTablesFromJson(Map<String, dynamic> json) {
  final TaskDepartmentListTaskTimeNodeTables taskDepartmentListTaskTimeNodeTables = TaskDepartmentListTaskTimeNodeTables();
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    taskDepartmentListTaskTimeNodeTables.createBy = createBy;
  }
  final String? createById = jsonConvert.convert<String>(json['createById']);
  if (createById != null) {
    taskDepartmentListTaskTimeNodeTables.createById = createById;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    taskDepartmentListTaskTimeNodeTables.createDate = createDate;
  }
  final String? deleted = jsonConvert.convert<String>(json['deleted']);
  if (deleted != null) {
    taskDepartmentListTaskTimeNodeTables.deleted = deleted;
  }
  final String? departmentId = jsonConvert.convert<String>(json['departmentId']);
  if (departmentId != null) {
    taskDepartmentListTaskTimeNodeTables.departmentId = departmentId;
  }
  final int? hasItBeenClaimed = jsonConvert.convert<int>(json['hasItBeenClaimed']);
  if (hasItBeenClaimed != null) {
    taskDepartmentListTaskTimeNodeTables.hasItBeenClaimed = hasItBeenClaimed;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    taskDepartmentListTaskTimeNodeTables.id = id;
  }
  final String? recipientId = jsonConvert.convert<String>(json['recipientId']);
  if (recipientId != null) {
    taskDepartmentListTaskTimeNodeTables.recipientId = recipientId;
  }
  final String? recipientName = jsonConvert.convert<String>(json['recipientName']);
  if (recipientName != null) {
    taskDepartmentListTaskTimeNodeTables.recipientName = recipientName;
  }
  final String? recipientPhone = jsonConvert.convert<String>(json['recipientPhone']);
  if (recipientPhone != null) {
    taskDepartmentListTaskTimeNodeTables.recipientPhone = recipientPhone;
  }
  final int? remember = jsonConvert.convert<int>(json['remember']);
  if (remember != null) {
    taskDepartmentListTaskTimeNodeTables.remember = remember;
  }
  final String? startDate = jsonConvert.convert<String>(json['startDate']);
  if (startDate != null) {
    taskDepartmentListTaskTimeNodeTables.startDate = startDate;
  }
  final String? taskProgrammeId = jsonConvert.convert<String>(json['taskProgrammeId']);
  if (taskProgrammeId != null) {
    taskDepartmentListTaskTimeNodeTables.taskProgrammeId = taskProgrammeId;
  }
  final String? tbBaseControlMeasuresId = jsonConvert.convert<String>(json['tbBaseControlMeasuresId']);
  if (tbBaseControlMeasuresId != null) {
    taskDepartmentListTaskTimeNodeTables.tbBaseControlMeasuresId = tbBaseControlMeasuresId;
  }
  final String? tbBaseMeasuresTaskId = jsonConvert.convert<String>(json['tbBaseMeasuresTaskId']);
  if (tbBaseMeasuresTaskId != null) {
    taskDepartmentListTaskTimeNodeTables.tbBaseMeasuresTaskId = tbBaseMeasuresTaskId;
  }
  final String? tbBaseRiskEventsId = jsonConvert.convert<String>(json['tbBaseRiskEventsId']);
  if (tbBaseRiskEventsId != null) {
    taskDepartmentListTaskTimeNodeTables.tbBaseRiskEventsId = tbBaseRiskEventsId;
  }
  final String? tbBaseRiskObjectId = jsonConvert.convert<String>(json['tbBaseRiskObjectId']);
  if (tbBaseRiskObjectId != null) {
    taskDepartmentListTaskTimeNodeTables.tbBaseRiskObjectId = tbBaseRiskObjectId;
  }
  final String? tbBaseRiskUnitId = jsonConvert.convert<String>(json['tbBaseRiskUnitId']);
  if (tbBaseRiskUnitId != null) {
    taskDepartmentListTaskTimeNodeTables.tbBaseRiskUnitId = tbBaseRiskUnitId;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    taskDepartmentListTaskTimeNodeTables.updateBy = updateBy;
  }
  final String? updateById = jsonConvert.convert<String>(json['updateById']);
  if (updateById != null) {
    taskDepartmentListTaskTimeNodeTables.updateById = updateById;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    taskDepartmentListTaskTimeNodeTables.updateDate = updateDate;
  }
  final String? validityPeriodEndTime = jsonConvert.convert<String>(json['validityPeriodEndTime']);
  if (validityPeriodEndTime != null) {
    taskDepartmentListTaskTimeNodeTables.validityPeriodEndTime = validityPeriodEndTime;
  }
  final String? validityPeriodStartTime = jsonConvert.convert<String>(json['validityPeriodStartTime']);
  if (validityPeriodStartTime != null) {
    taskDepartmentListTaskTimeNodeTables.validityPeriodStartTime = validityPeriodStartTime;
  }
  final String? troubleshootContent = jsonConvert.convert<String>(json['troubleshootContent']);
  if (troubleshootContent != null) {
    taskDepartmentListTaskTimeNodeTables.troubleshootContent = troubleshootContent;
  }
  final bool? currentRecipient = jsonConvert.convert<bool>(json['currentRecipient']);
  if (currentRecipient != null) {
    taskDepartmentListTaskTimeNodeTables.currentRecipient = currentRecipient;
  }
  return taskDepartmentListTaskTimeNodeTables;
}

Map<String, dynamic> $TaskDepartmentListTaskTimeNodeTablesToJson(TaskDepartmentListTaskTimeNodeTables entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['createBy'] = entity.createBy;
  data['createById'] = entity.createById;
  data['createDate'] = entity.createDate;
  data['deleted'] = entity.deleted;
  data['departmentId'] = entity.departmentId;
  data['hasItBeenClaimed'] = entity.hasItBeenClaimed;
  data['id'] = entity.id;
  data['recipientId'] = entity.recipientId;
  data['recipientName'] = entity.recipientName;
  data['recipientPhone'] = entity.recipientPhone;
  data['remember'] = entity.remember;
  data['startDate'] = entity.startDate;
  data['taskProgrammeId'] = entity.taskProgrammeId;
  data['tbBaseControlMeasuresId'] = entity.tbBaseControlMeasuresId;
  data['tbBaseMeasuresTaskId'] = entity.tbBaseMeasuresTaskId;
  data['tbBaseRiskEventsId'] = entity.tbBaseRiskEventsId;
  data['tbBaseRiskObjectId'] = entity.tbBaseRiskObjectId;
  data['tbBaseRiskUnitId'] = entity.tbBaseRiskUnitId;
  data['updateBy'] = entity.updateBy;
  data['updateById'] = entity.updateById;
  data['updateDate'] = entity.updateDate;
  data['validityPeriodEndTime'] = entity.validityPeriodEndTime;
  data['validityPeriodStartTime'] = entity.validityPeriodStartTime;
  data['troubleshootContent'] = entity.troubleshootContent;
  data['currentRecipient'] = entity.currentRecipient;
  return data;
}

extension TaskDepartmentListTaskTimeNodeTablesExtension on TaskDepartmentListTaskTimeNodeTables {
  TaskDepartmentListTaskTimeNodeTables copyWith({
    String? createBy,
    String? createById,
    String? createDate,
    String? deleted,
    String? departmentId,
    int? hasItBeenClaimed,
    String? id,
    String? recipientId,
    String? recipientName,
    String? recipientPhone,
    int? remember,
    String? startDate,
    String? taskProgrammeId,
    String? tbBaseControlMeasuresId,
    String? tbBaseMeasuresTaskId,
    String? tbBaseRiskEventsId,
    String? tbBaseRiskObjectId,
    String? tbBaseRiskUnitId,
    String? updateBy,
    String? updateById,
    String? updateDate,
    String? validityPeriodEndTime,
    String? validityPeriodStartTime,
    String? troubleshootContent,
    bool? currentRecipient,
  }) {
    return TaskDepartmentListTaskTimeNodeTables()
      ..createBy = createBy ?? this.createBy
      ..createById = createById ?? this.createById
      ..createDate = createDate ?? this.createDate
      ..deleted = deleted ?? this.deleted
      ..departmentId = departmentId ?? this.departmentId
      ..hasItBeenClaimed = hasItBeenClaimed ?? this.hasItBeenClaimed
      ..id = id ?? this.id
      ..recipientId = recipientId ?? this.recipientId
      ..recipientName = recipientName ?? this.recipientName
      ..recipientPhone = recipientPhone ?? this.recipientPhone
      ..remember = remember ?? this.remember
      ..startDate = startDate ?? this.startDate
      ..taskProgrammeId = taskProgrammeId ?? this.taskProgrammeId
      ..tbBaseControlMeasuresId = tbBaseControlMeasuresId ?? this.tbBaseControlMeasuresId
      ..tbBaseMeasuresTaskId = tbBaseMeasuresTaskId ?? this.tbBaseMeasuresTaskId
      ..tbBaseRiskEventsId = tbBaseRiskEventsId ?? this.tbBaseRiskEventsId
      ..tbBaseRiskObjectId = tbBaseRiskObjectId ?? this.tbBaseRiskObjectId
      ..tbBaseRiskUnitId = tbBaseRiskUnitId ?? this.tbBaseRiskUnitId
      ..updateBy = updateBy ?? this.updateBy
      ..updateById = updateById ?? this.updateById
      ..updateDate = updateDate ?? this.updateDate
      ..validityPeriodEndTime = validityPeriodEndTime ?? this.validityPeriodEndTime
      ..validityPeriodStartTime = validityPeriodStartTime ?? this.validityPeriodStartTime
      ..troubleshootContent = troubleshootContent ?? this.troubleshootContent
      ..currentRecipient = currentRecipient ?? this.currentRecipient;
  }
}
